package com.clkj.aimin.pojo.topic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_topicComments" )
@Table( name ="t_cl_topicComments" )
public class TopicComments  implements Serializable {

    @Id
   	@Column(name = "commonts_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer commontsId;

	/**
	 * 文章ID
	 */
   	@Column(name = "topic_id" )
	@ApiModelProperty( value="文章ID")
	private Integer topicId;

	/**
	 * 评论者ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="评论者ID")
	private Integer userId;

	/**
	 * 评论内容
	 */
   	@Column(name = "commonts_content" )
	@ApiModelProperty( value="评论内容")
	private String commontsContent;

	/**
	 * 评论时间
	 */
   	@Column(name = "date_time" )
	@ApiModelProperty( value="评论时间")
	private String dateTime;

	/**
	 * 回复评论者的评论ID
	 */
   	@Column(name = "parent_id" )
	@ApiModelProperty( value="回复评论者的评论ID")
	private Integer parentId;

   	@Transient
   	private String userName;
    @Transient
    private String userImg;

  public Integer getCommontsId() {
    return commontsId;
  }

  public void setCommontsId(Integer commontsId) {
    this.commontsId = commontsId;
  }


  public Integer getTopicId() {
    return topicId;
  }

  public void setTopicId(Integer topicId) {
    this.topicId = topicId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getCommontsContent() {
    return commontsContent;
  }

  public void setCommontsContent(String commontsContent) {
    this.commontsContent = commontsContent;
  }


  public String getDateTime() {
    return dateTime;
  }

  public void setDateTime(String dateTime) {
    this.dateTime = dateTime;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
}
